package com.appbee.songs.server.model;

import com.appbee.songs.shared.FilterField;

public class SongFilter
{
	private String value;
	private FilterField field;
	private String sortField;
	private boolean ascending;
	
	public boolean hasValue()
	{
		return value!=null && value.length()>0;
	}
	public String getValue()
	{
		return value;
	}
	public void setValue(String value)
	{
		this.value = value;
	}
	public FilterField getField()
	{
		return field;
	}
	public void setField(FilterField field)
	{
		this.field = field;
	}

	public String getSortField()
	{
		return sortField;
	}

	public void setSortField(String sortField)
	{
		this.sortField = sortField;
	}

	public boolean getAscending()
	{
		return ascending;
	}

	public void setAscending(boolean ascending)
	{
		this.ascending = ascending;
	}
	
	
}
